package com.service;

import com.beans.Admin;
import com.beans.Forum;
import com.beans.ResponseResult;
import com.vo.ForumVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ForumService {

    List<ForumVo> getAllForum();

    int addForum(Forum forum);

    ForumVo selectForumById(int id);

    int deleteForum(int id);

    int updateForum(Forum forum);

    List<ForumVo> selectByTitle(String title);

    Map<String,Object> queryByPage(Forum forum, Integer page, Integer limit);
}
